<?php
$time = sprintf("%.5f", microtime(true));
session_start(); 

$cache = new Memcache;

$cache->addServer('192.168.1.143',11211);
$cache->connect('127.0.0.1',11211);

$loop = 1000;

$i = 0;
echo "Starting loop of $loop";
do {
$new_data = $cache->get('univ_key1');
echo ".";
$i++;
} while ($i < $loop);
$qtime = sprintf("%.5f", microtime(true)-$time);
echo "<br />Gen in $qtime";
?>
